import { store } from "hui-core"
const globalData = {
  loadingCount: 0
};
export const setLoadingCount = (val) => {
  globalData['loadingCount'] = val
  if (globalData['loadingCount'] == 0) {
    store.commit('closeLoading');
  } else {
    store.commit('openLoading');
  }
}
export const getLoadingCount = () => {
  return globalData['loadingCount']
}
